package com.rfid.emergencywarehouse.fragment;

import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.navigation.fragment.NavHostFragment;

import com.rfid.base.base.BasePresenter;
import com.rfid.emergencywarehouse.R;
import com.rfid.emergencywarehouse.presenter.ShelfingPresenter;
import com.rfid.emergencywarehouse.presenter.ShelfingWithOrderPresenter;

import butterknife.BindView;

public class ShelfingWithoutOrderFragment extends ShelfingFragment<ShelfingPresenter>{

    @BindView(R.id.orderNo_parent)
    View orderNumParent;
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("无单上架");
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        orderNumParent.setVisibility(View.GONE);
    }

//    @Override
//    public void onShelfingResult(boolean succes, String msg) {
//        if (succes) {
//            NavHostFragment.findNavController(this).navigate(R.id.action_shelfingWithoutOrderFragment_to_successFragment);
//        }
//        super.onShelfingResult(succes,msg);
//    }

    @Override
    public ShelfingPresenter getPresenter() {
        return new ShelfingPresenter();
    }
}
